package concurrent;

/**
 * @program: study2025
 * @description:
 * @author: liuChangFu
 * @data: 2025-02-10 15:05
 **/
public class Test {

    public static void main(String[] args) throws InterruptedException {
//        ExtendsThread extendsThread = new ExtendsThread();
//        extendsThread.start();
//        System.out.println("-------");
//        RunnableThread runnableThread = new RunnableThread();
//        Thread thread = new Thread(runnableThread);
//        thread.start();
        // 获取域名的前缀 例：http://gkeduelearn.iflytek.com  获取到 gkeduelearn
        String requestURL = "https://gkeduelearn.iflytek.com";
        String domain = requestURL.split("\\.")[0].substring(requestURL.indexOf("//") + 2);
        System.out.println(domain);
    }
}
